<!doctype html>
<html ng-app='myApp'>
<head>
<#include "/h5/include.ftl"/>
<script>
	var _id = '${id}';
</script>
<script src="/h5/js/biz/addDiancan.js"></script>
<title>点餐结算</title>
</head>

<body style="background:#f2f2f2;" ng-controller='MyController'>
<div class="index-header"> 
  <!--iheader-->
  <div id="iheader">
  <a href="/m/store/diancan/${id}" class="iheader_back"></a>
    <h2 class="iheader_title">结算</h2>
    <h6 class="clear"></h6>
  </div>
</div>
<div class="h90"></div>
<div class="balance">
	<div class="balance_t">已选菜品</div>
	<div class="balance_a">
    	<div class="balance_a_list" ng-repeat='d in data.goods'>
        	<div class="balance_a_pic"><img src="/h5/images/cai.jpg" ng-src='/download?id={{d.img}}'></div>
            <div class="balance_a_r">
            	<span class="count">x{{d.num}}</span>
                <h2 ng-bind='d.name'>烧汁杏鲍菇</h2>
                <h3><b ng-bind='d.price'>66</b>元/份</h3>
            </div>
        </div>
        <div class="balance_a_total">
        	<h3>合计：{{data.goodsTotal}}元<span ng-bind='data.youhui.full'>（已满1000元，送200元酒水）</span></h3>
        	<h2>共{{data.goods.length}}个菜</h2>
            <h6 class="clear"></h6>
        </div>
    </div>
	<div class="h20"></div>
	<div class="balance_b" ng-show='data.wine.length > 0'>
    	<div class="balance_b_t"><h2>酒水免单</h2></div>
    	<div class="balance_b_list">
        	<dl ng-repeat='g in data.wine'>
            	<span>x{{g.num}}</span>
            	<dt ng-bind='g.name'>百利甜酒750ml</dt>
                <dd>￥{{g.price}}</dd>
                <h6 class="claer"></h6>
            </dl>
        </div>
        <div class="balance_b_total">
        	<h2><span>合计：{{data.wineTotal}}元</span>共{{wine.length}}个菜</h2>
        	<h3>优惠：-{{data.youhui.discount}}元</h3>
        	<h4>结算：{{data.youhui.winNeed}}元</h4>
        </div>
    </div>
    <div class="h20"></div>
    <div class="balance_c" ng-show='data.coupon.id'><a href="#"><span>{{data.coupon.value}}元抵现</span>使用优惠券</a></div>
    <div class="h20"></div>
    <div class="balance_d"><a href="#">备注<input type='text' style='margin-left:20px;' placeholder="口味，偏好等其他需求" ng-model="remark" ></input></a></div>
</div>
<div class="h40"></div>
<div class="h100"></div>
<div class="balance_pay">
    <a href="#" class="online_pay" ng-click='goSubmit(1)'>在线支付</a>
    <a href="#" class="offline_pay" ng-click='goSubmit(2)'>线下付款</a>
	<div class="balance_price">实付款：<span>￥<i ng-bind='data.youhui.total'>950</i></span></div>
</div>
</body>
</html>
